package nc.tb.bc.entryquery;

import javax.swing.table.DefaultTableCellRenderer;

import nc.vo.pub.lang.UFDouble;

public class UFDoubleCellRenderer extends DefaultTableCellRenderer {

	protected void setValue(Object value) {
		if (value != null && value instanceof UFDouble) {
			value = ((UFDouble)value).setScale(-2, UFDouble.ROUND_HALF_UP);
		}
		super.setValue(value);
	}
}
